package com.liang;

import com.liang.ui.ChoosesUI;

import javax.swing.*;
import java.awt.*;

/**
 * @ClassName MainUI
 * @Description TODO 启动入口
 * @Author liang
 * @Date 2019/7/4 14:45
 * @Version 1.0
 **/
public class MainUI {
    //界面美化,字体发虚问题处理
    public static String[] DEFAULT_FONT  = new String[]{    "Table.font"    ,"TableHeader.font"    ,"CheckBox.font"    ,"Tree.font"    ,"Viewport.font"    ,"ProgressBar.font"    ,"RadioButtonMenuItem.font"    ,"ToolBar.font"    ,"ColorChooser.font"    ,"ToggleButton.font"    ,"Panel.font"    ,"TextArea.font"    ,"Menu.font"    ,"TableHeader.font"     ,"TextField.font"    ,"OptionPane.font"    ,"MenuBar.font"    ,"Button.font"    ,"Label.font"    ,"PasswordField.font"    ,"ScrollPane.font"    ,"MenuItem.font"    ,"ToolTip.font"    ,"List.font"    ,"EditorPane.font"    ,"Table.font"    ,"TabbedPane.font"    ,"RadioButton.font"    ,"CheckBoxMenuItem.font"    ,"TextPane.font"    ,"PopupMenu.font"    ,"TitledBorder.font"    ,"ComboBox.font"};

    public static void main(String[] args) {
        //界面美化工具
        try {
            org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
            UIManager.put("RootPane.setupButtonVisible", false);
            for (int i = 0; i < DEFAULT_FONT.length; i++){
                UIManager.put(DEFAULT_FONT[i],new Font("微软雅黑", Font.PLAIN,14));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        new ChoosesUI();
    }


}
